#ifndef IMAGE_VIEWER_H
#define IMAGE_VIEWER_H
#include <QMainWindow>
#include <QApplication>
#include <QFileDialog>
#include <QDir>
#include <QListWidget>
#include <QListWidgetItem>
#include <QImage>
#include <QPixmap>
#include <QLabel>
#include <QVBoxLayout>
#include <QWidget>
#include <QDebug>
#include <QGuiApplication>
#include <QScreen>
#include <QWidget>
#include <QWebEngineView>
#include <QStackedLayout>
#include "ui_Image_Viewer.h"
#include <QTimer>
#include <opencv2/opencv.hpp>


class Image_Viewer : public QWidget
{
    Q_OBJECT

public:
    explicit Image_Viewer(QWidget *parent = nullptr);
    ~Image_Viewer();
private:
    Ui::Image_Viewer *ui;
    QLabel *PicShowLabel1;
    QLabel *cameraLabel;
    QLabel *cameraLabel2;
    QTimer *timer;
    cv::VideoCapture cap;

    QImage MatToQImage(const cv::Mat &mat);

private slots:
    void updateCameraFrame();
    void on_dakaiBt_clicked();

    void on_deleteBt_clicked();

    void on_daBt_clicked();

    void on_xiaoBt_clicked();

    void on_youzhuanBt_clicked();

    void on_zuozhuanBt_clicked();

    void on_youBt_clicked();

    void on_zuoBt_clicked();



    void on_homeBt_clicked();
    void on_wallpaperBt_clicked();
    void on_pushButton_clicked();
    void on_openC_clicked();
    void on_closeC_clicked();
    void on_pushButton_2_clicked();
    void on_huidu_clicked();
    void on_horizontalSlider_valueChanged(int value);
//    void on_pushButton_3_clicked();
    void on_button_clicked();
    void on_button_clicked(QPushButton* button, QLabel* PicShowLabel1);
    void on_bianyuanBt_clicked();
    void on_renlian_clicked();
};
#endif // IMAGE_VIEWER_H
